package com.nxn.core.web.action.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.nxn.core.model.Person;
import com.nxn.core.service.EntityManager;
import com.nxn.core.service.PersonService;
import com.nxn.core.web.action.base.CRUDAction;

@Controller("Action")
@Scope("prototype")
//@Namespace("/person")
//@ParentPackage("basicstruts2")
//@Results( { @Result(name = "success", location = "/index.jsp") } )
public class TemplateAction extends CRUDAction<Person, Long> {
	
	@Autowired
	private PersonService personService ;
	
	public EntityManager<Person, Long> getServiceImpl() {
		return personService;
	}

}
